package main.java.chessfootball.rules.checker;

import main.java.chessfootball.model.game.Field;

/**
 * User: Igor
 * Date: 27.07.2011
 * Time: 7:15:54
 */
public class BallAreaChecker extends AbstractBallChecker
{
	@Override
	public boolean valid()
	{
		if (Field.PLAY_AREA.contains(moveBallToCell))
		{
			return true;
		}
		if (Field.GOALS_AREA[0].contains(moveBallToCell))
		{
			return true;
		}
		if (Field.GOALS_AREA[1].contains(moveBallToCell))
		{
			return true;
		}
		return false;
	}
}
